package org.wangp.business.user.repository.es

import org.springframework.data.domain.Pageable
import org.springframework.data.elasticsearch.annotations.Query
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository
import org.springframework.scheduling.annotation.Async
import org.wangp.business.user.repository.es.domain.UserDoEs
import java.util.concurrent.CompletableFuture

/**
 * @author wangpeng (๑•ᴗ•๑)
 * @date 2021/10/13 11:47
 */
interface UserEsRepo : ElasticsearchRepository<UserDoEs, String> {

	@Async
	fun findByUsername(username: String, pageable: Pageable): List<UserDoEs>
}
